package org.example.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Pea {
    private Integer id;

    private String title;

    private String address;

    private String peasant;

    private String fertilize;

    private Integer typeId;

    private String fertilizerName;

    private Integer baggingId;

    private String fertilizeTel;

    private Integer plantYear;

    private Integer miaoWeek;

    private Integer waterWeek;

    private Integer caoWeek;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String context;

    private String cropNo;

}
